package controller

import (
	"gitee.com/csingo/cResponse"
	"github.com/gin-gonic/gin"
	"satis-go/resource"
)

type HtmlController struct{}

func (i *HtmlController) ControllerName() (app, name string) {
	return "collector", "HtmlController"
}

func (i *HtmlController) Index(ctx *gin.Context) (int, interface{}) {
	body, err := resource.Asset("resource/html/index.html")
	return cResponse.StringToHTML(ctx, string(body), err)
}
